package org.eclipsecon.swtbot.example;

import org.eclipse.swtbot.swt.finder.SWTBot;

public class NewProjectBot {
	
	private SWTBot bot = new SWTBot();

	public NewProjectBot() {
		bot.menu("File").menu("New").menu("Project...").click();
		bot.shell("New Project").activate();
		bot.tree().select("Java Project");
		bot.button("Next >").click();
	}

	public void setProjectName(String projectName) {
		bot.textWithLabel("Project name:").setText(projectName);
	}

	public void finish() {
		bot.button("Finish").click();
	}
}
